import App from "../App";
import Deail from "../pages/deail";
import Error from "../pages/error";
import Home from "../pages/home";
import {createBrowserRouter} from 'react-router-dom'


export const router = createBrowserRouter([
    {
        path: "/",
        element: <App></App>,
        children: [
            {
                index: true,
                element: <Home></Home>
            },
            {
                path: "home",
                element: <Home></Home>
            }
        ]
    },
    {
        path: "/deail",
        element: <Deail></Deail>
    },
     {
        path: "*",
        element: <Error></Error>
    },
]);